var log=console.log;
var user={"username":"zhangsan",age:20,sex:"male"};

log("username:%s",user.username);
log("age:%d",user.age);
log("user:%j",user);//JSON结构

log(`${user.username}`);